package com.example.HQCource;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;

import java.util.Locale;

public class appllication {
    @Autowired
    private ApplicationContext applicationContext;
  @Test
  public void demo(){
      String hi = applicationContext.getMessage("hi", null, Locale.CHINA);
      String hi2 = applicationContext.getMessage("hi", null, Locale.ENGLISH);
      String hi3 = applicationContext.getMessage("hi", null, Locale.JAPANESE);
      System.out.println(hi);
      System.out.println(hi2);
      System.out.println(hi3);
  }

}
